All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.ServiceConfiguration

java.lang.Object
   |
   +----java.util.Observable
           |
           +----sun.server.ServiceConfiguration

public class ServiceConfiguration
extends Observable
implements FilenameFilter
Service configuration class holding all properties for a service.


Variable Index

 o DEFAULT_PROPS
 o SUFFIX

Constructor Index

 o ServiceConfiguration(File)
Create a service configuration which holds all properties for a particular service.
 o ServiceConfiguration(File[])
Create a service configuration which holds all properties for a particular service.

Method Index

 o accept(File, String)
Implement file filtering to get just .properties files.
 o getGroupProperties(String)
Get all the properties in a property group.
 o getGroupProperty(String, String)
Get a property from a particular property group.
 o getMatchingProperties(String)
Get a property set having property names starting with a prefix.
 o getProperties()
Get all the properties in the global list.
 o getProperty(String)
Get a property from the global list.
 o replaceGroupProperties(String, ExProperties)
Replace a complete property group.
 o setGroupProperties(String, ExProperties)
Set a group of properties in a property group.
 o setGroupProperty(String, String, String)
Set a property in a property group.
 o setProperties(ExProperties)
Set a group of properties in the global list.
 o setProperty(String, String)
Set a property in the global list.
 o toString()
Convert to a string.

Variables

 o DEFAULT_PROPS
 public static final String DEFAULT_PROPS
 o SUFFIX
 public static final String SUFFIX

Constructors

 o ServiceConfiguration
 public ServiceConfiguration(File configDir)
Create a service configuration which holds all properties for a particular service.

 o ServiceConfiguration
 public ServiceConfiguration(File configDirs[])
Create a service configuration which holds all properties for a particular service.

Methods

 o getProperty
 public String getProperty(String propName)
Get a property from the global list.

 o getProperties
 public ExProperties getProperties()
Get all the properties in the global list.

 o getMatchingProperties
 public ExProperties getMatchingProperties(String propNamePrefix)
Get a property set having property names starting with a prefix.

 o setProperty
 public void setProperty(String propName,
                         String newValue) throws IOException
Set a property in the global list. Notifies observers of the change.

 o setProperties
 public void setProperties(ExProperties changedProps) throws IllegalArgumentException, IOException
Set a group of properties in the global list. Notifies observers of the change.

 o getGroupProperty
 public String getGroupProperty(String propGroup,
                                String propName)
Get a property from a particular property group.

 o getGroupProperties
 public ExProperties getGroupProperties(String propGroup) throws IllegalArgumentException
Get all the properties in a property group.

 o setGroupProperty
 public void setGroupProperty(String propGroup,
                              String propName,
                              String newValue) throws IOException
Set a property in a property group. Notifies observers of the change.

 o setGroupProperties
 public void setGroupProperties(String propGroup,
                                ExProperties changedProps) throws IllegalArgumentException, IOException
Set a group of properties in a property group. Adds new properties or replaces existing ones, but does not remove anything. Notifies observers of the change.

 o replaceGroupProperties
 public void replaceGroupProperties(String propGroup,
                                    ExProperties props) throws IllegalArgumentException, IOException
Replace a complete property group. Notifies observers of the change.

 o accept
 public boolean accept(File dir,
                       String name)
Implement file filtering to get just .properties files.

 o toString
 public String toString()
Convert to a string.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index